package com.example.yoga.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author liwenkai
 * @since 2021-03-26
 */
@TableName("usercombo_status")
public class UsercomboStatus extends Model<UsercomboStatus> {

    private static final long serialVersionUID = 1L;

    /**
     * 用来表示记录的id
     */
    @TableId(value = "ucsId", type = IdType.AUTO)
    private Integer ucsid;

    /**
     * 用户id
     */
    @TableField("userId")
    private Integer userid;

    /**
     * 套餐id
     */
    @TableField("comboId")
    private Integer comboid;

    /**
     * 提交申请时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    @TableField("applyTime")
    private Date applytime;

    /**
     * 审核时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    @TableField("checkTime")
    private Date checktime;


    @TableField("status")
    private String status;


    public Integer getUcsid() {
        return ucsid;
    }

    public void setUcsid(Integer ucsid) {
        this.ucsid = ucsid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getComboid() {
        return comboid;
    }

    public void setComboid(Integer comboid) {
        this.comboid = comboid;
    }

    public Date getApplytime() {
        return applytime;
    }

    public void setApplytime(Date applytime) {
        this.applytime = applytime;
    }

    public Date getChecktime() {
        return checktime;
    }

    public void setChecktime(Date checktime) {
        this.checktime = checktime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.ucsid;
    }

    @Override
    public String toString() {
        return "UsercomboStatus{" +
        "ucsid=" + ucsid +
        ", userid=" + userid +
        ", comboid=" + comboid +
        ", applytime=" + applytime +
        ", checktime=" + checktime +
        ", status=" + status +
        "}";
    }
}
